﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public enum BankType
    {
        /// <summary>
        /// 银行卡账号
        /// </summary>
        Bank=0,
        /// <summary>
        /// 网上支付账号
        /// </summary>
        InlinePay=1,
    }

    public static class BankTypeEx
    {
        public static string GetName(this BankType type)
        {
            switch (type)
            { 
                case BankType.Bank:
                    return "银行卡账号";
                case BankType.InlinePay:
                    return "网上支付账号";
                default:
                    return string.Empty;
            }
        }
    }
}
